/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsf.service;

import com.jsf.entity.OtherUser;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;

@ManagedBean
public class LoginService {
    
    
    @ManagedProperty("#{userService}")
    private UserService service;
    
    public void addUser(OtherUser user){
        service.addUser(user);
    }
    
    public void addUser(){
        System.out.println("add User Success");
    }
    
    public void setService(UserService service) {
        this.service = service;
    } 
    
}
